#include "dialogspectralsignature.h"
#include "ui_dialogspectralsignature.h"

DialogSpectralSignature::DialogSpectralSignature(QVector<int> bandsValues, QWidget *parent) : QDialog(parent),
    m_ui(new Ui::DialogSpectralSignature)
{
    m_ui->setupUi(this);
    this->m_ui->lBand1->setText(QVariant(bandsValues.at(0)).toString());
    this->m_ui->lBand2->setText(QVariant(bandsValues.at(1)).toString());
    this->m_ui->lBand3->setText(QVariant(bandsValues.at(2)).toString());
    this->m_ui->lBand4->setText(QVariant(bandsValues.at(3)).toString());
    this->m_ui->lBand5->setText(QVariant(bandsValues.at(4)).toString());
    this->m_ui->lBand6->setText(QVariant(bandsValues.at(5)).toString());
    this->m_ui->lBand7->setText(QVariant(bandsValues.at(6)).toString());
}

DialogSpectralSignature::~DialogSpectralSignature()
{
    delete m_ui;
}

void DialogSpectralSignature::changeEvent(QEvent *e)
{
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}
